<?php defined('SYSPATH') or die('No direct script access.');

/**
 * 供应商接算配置
 * Class Controller_Admin_Finance_Supplier_Settle
 */
class Controller_Admin_Finance_Supplier_Config extends Stourweb_Controller
{

    function before()
    {
        parent::before();
    }

    //修改结算规则
    public function action_rule()
    {

        $config = Model_Sysconfig::get_configs(0,array('cfg_supplier_brokerage_start_days','cfg_supplier_brokerage_finish_days','cfg_supplier_brokerage_type'));

        if(!$config['cfg_supplier_brokerage_start_days'])
        {
            $config['cfg_supplier_brokerage_start_days'] = 0 ;
        }
        if(!$config['cfg_supplier_brokerage_finish_days'])
        {
            $config['cfg_supplier_brokerage_finish_days'] = 0 ;
        }

        $this->assign('config',$config);
        $this->display('admin/finance/supplier/config/rule');
    }



}